module.exports = {
  expo: {
    name: "时间追踪",
    slug: "time-tracker",
    version: "1.0.0",
    orientation: "portrait",
    icon: "./assets/icon.png",
    userInterfaceStyle: "automatic",
    splash: {
      image: "./assets/splash-icon.png",
      resizeMode: "contain",
      backgroundColor: "#ffffff"
    },
    updates: {
      fallbackToCacheTimeout: 0
    },
    assetBundlePatterns: [
      "**/*"
    ],
    ios: {
      supportsTablet: true,
      bundleIdentifier: "com.timetracker.app",
      buildNumber: "1",
      infoPlist: {
        UIBackgroundModes: ["location", "fetch"]
      }
    },
    android: {
      adaptiveIcon: {
        foregroundImage: "./assets/adaptive-icon.png",
        backgroundColor: "#FFFFFF"
      },
      package: "com.timetracker.app",
      versionCode: 1,
      permissions: [
        "WAKE_LOCK",
        "FOREGROUND_SERVICE",
        "android.permission.FOREGROUND_SERVICE",
        "android.permission.RECEIVE_BOOT_COMPLETED",
        "android.permission.SCHEDULE_EXACT_ALARM",
        "android.permission.USE_EXACT_ALARM",
        "android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"
      ]
    },
    web: {
      favicon: "./assets/favicon.png"
    },
    extra: {
      eas: {
        projectId: "66d0a4b9-128a-4ffd-aaa6-ac7d1bdab34e"
      }
    },
    plugins: [
      ["expo-build-properties", {
        "android": {
          "compileSdkVersion": 33,
          "targetSdkVersion": 33,
          "buildToolsVersion": "33.0.0"
        }
      }],
      "expo-background-fetch",
      "expo-task-manager"
    ]
  }
}; 